<include file="Public:header" />
<include file="Public:menu" />

<div  id="main_content_wrap" class="container_12">
  <div class="container_12 boxbody">
  <h2>
    提现申请审核
  </h2>
  <form action="{:U('Tixian/done')}" method="post" id="checkAdminForm"  name="myform" enctype="multipart/form-data">
    <foreach name="thistixian" item="item">
    <p>
      <label>用户：</label>
      <input type="text"  value="{$item.username}" id="user" name="phone" readonly class="text small" />
    </p>
    <p>
      <label>提现金额：</label>
      <input type="number" value="{$item.apply_money}" id="money" name="money" readonly class="text small" />

    </p>
    <p>
      <label>支付宝账号：</label>
      <input type="text" value="{$item.zhifubao}" id="zhifubao" name="zhifubao" readonly class="text small" />
    </p>
      <p>
        <label>备注：</label>
        <input type="text" value="{$item.beizhu}" name="beizhu"  maxlength="15" class="text small" />
      </p>

    <p class='tac'>
      <input type="hidden" class="" value="1" name="checked" />
      <input type="hidden" class="" value="{$item.userid}" name="user_id" />
      <input type="hidden" class="" value="{$item.id}" name="checkid" />
      <input type="button" class="submit" value="确定" onclick="checkthis()" />
      <input type="button" class="submit" value="驳回" onclick="unsure({$item.id})" />
    </p>
    </foreach>
    </form>
    </div>
</div>
<script>
  function checkthis() {
    var user = document.getElementById("user").value;
    var zfb = document.getElementById("zhifubao").value;
    var money = document.getElementById("money").value;
    var sure =confirm("确认收款信息:\r"+"用   户:"+user+"\r"+"支付宝："+zfb+"\r"+"提现金额："+money);
    if (sure==true)
    {
      document.myform.submit();//button按钮实现提交 方法
    }
  }
  function unsure(id){
    var sure =confirm("确定要驳回此用户的提现申请吗？");
    if (sure==true)
    {
      //window.location.href ="index.php?m=Admin&c=Tixian&a=unsure&id="+id;
      window.location.href="{:U('Tixian/unsure')}"+"&id="+id;
    }
  }
</script>
<include file="Public:footer" />